package com.tito.common.api.query;

import java.util.List;
import java.util.StringTokenizer;

/**
 * 默认条件接口实现类。
 */
public class DefaultQueryField {

    // 字段
    private String field;
    // 比较符
    private OptChar compare;
    // 比较值
    private Object value;

    // 字段前缀名，一般用于表的别名，如user.
    // private String preFieldName="";

    public DefaultQueryField() {
    }

    public DefaultQueryField(String field, Object value) {
        this.field = field;
        this.value = value;
    }

    public DefaultQueryField(String field, OptChar compare, Object value) {
        this.field = field;
        this.compare = compare;
        this.value = value;
    }


    public String getField() {
        return field;
    }

    public void setField(String field) {
        this.field = field;
    }

    public Object getValue() {
        return value;
    }

    public void setValue(Object value) {
        this.value = value;
    }

    public OptChar getCompare() {
        return compare;
    }

    public void setCompare(OptChar compare) {
        this.compare = compare;
    }

}